package engineDJW.sound {
	/**
	 * ...
	 * @author Dale J Williams
	 */
	public class SoundGroup {
		
		private var _sounds		:Vector.<SoundObject>;
		private var _name		:String;
		
		public function SoundGroup($name:String) {
			_name = $name;
			init();
		}
		
		private function init():void {
			_sounds = new Vector.<SoundObject>();
		}
		
		public function addSound($soundObject:SoundObject):void {
			_sounds.push($soundObject);
		}
		
		public function getRandom():SoundObject {
			return _sounds[int(_sounds.length * Math.random())];
		}
		
		public function get name():String { return _name; }
		
	}

}